﻿@{
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}


<header class="am-topbar admin-header">
    <div class="am-topbar-brand">
        <strong>千净</strong> <small>后台管理系统</small>
    </div>
    <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>
    <div class="am-collapse am-topbar-collapse" id="topbar-collapse">
        <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list">
            <li class="am-dropdown" data-am-dropdown>
                <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">
                    <span class="am-icon-users"></span> 管理员 <span class="am-icon-caret-down"></span>
                </a>
                <ul class="am-dropdown-content">
                    <li><a href="~/admin/user/login"><span class="am-icon-power-off"></span> 退出</a></li>
                </ul>
            </li>
        </ul>
    </div>
</header>

<div class="am-cf admin-main">
    <!-- sidebar start -->
    <div class="admin-sidebar am-offcanvas" id="admin-offcanvas">
        <div class="am-offcanvas-bar admin-offcanvas-bar">
            <ul class="am-list admin-sidebar-list">
                <li class="admin-sidebar-user"><a href="~/admin/user"><span class="am-icon-users"></span> 用户管理</a></li>
                <li class="admin-sidebar-order"><a href="~/admin/order"><span class="am-icon-archive"></span> 订单管理</a></li>
                <li class="admin-sidebar-consumer"><a href="~/admin/consumer"><span class="am-icon-th-large"></span> 客户管理</a></li>
                <li class="admin-sidebar-Aunt"><a href="~/admin/Aunt"><span class="am-icon-users"></span> 管家管理</a></li>
                <li class="admin-sidebar-Good"><a href="~/admin/Good"><span class="am-icon-archive"></span> 服务管理</a></li>
                <li class="admin-sidebar-Project"><a href="~/admin/Project"><span class="am-icon-users"></span> 项目管理</a></li>
                <li class="admin-sidebar-Address"><a href="~/admin/Address"><span class="am-icon-users"></span> 订单地址管理</a></li>
                <li class="admin-sidebar-Agent"><a href="~/admin/Agent"><span class="am-icon-archive"></span> 地址管理</a></li>
                <li class="admin-sidebar-wall"><a href="~/admin/Message"><span class="am-icon-archive"></span> 留言墙管理</a></li>
                <li class="admin-sidebar-shopItem"><a href="~/Admin/ShopItem"><span class="am-icon-archive"></span> 商品管理</a></li>
                <li class="admin-sidebar-reward"><a href="~/admin/Reward"><span class="am-icon-archive"></span> 打赏管理</a></li>
                <li class="admin-sidebar-ShopOrderList"><a href="~/Admin/ShopOrderList"><span class="am-icon-archive"></span> 商城订单管理</a></li>
            </ul>
        </div>
    </div>
    <!-- sidebar end -->
    <!-- content start -->
    <div class="admin-content">
        @RenderBody()
    </div>
    <!-- content end -->
</div>

@section Styles{
    @Styles.Render("~/cssbundles/admin")
    @RenderSection("Styles", false)
}

@section Scripts{
    @Scripts.Render("~/jsbundles/admin")
    @RenderSection("Scripts", false)
    
    <script>

        $(function checkLogin() {

            $.ajax({
                type: "POST",
                url: "../Admin/User/CheckLoginStat",
                contentType: "application/json",
                success: function (responseData) {

                    if (responseData.toString()=="False")
                    {
                        window.location.href = "http://www.qianjing-china.com/thousandClear/admin/user/login";
                    }
                    
                }
            });

        });

        

    </script>
    
}




